package com.it.App.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.App.eneity.Role;
import com.it.App.mapper.RoleMapper;
import com.it.App.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @Author: CaoYouGen
 * @DateTime: 2023/11/28/11:11
 * @注释: TODO
 **/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Set<String> getAllRoleNamesByUsername(String username) {
        return roleMapper.selectAllRoleNamesByUsername(username);
    }
}
